package com.efast.cafe.portal.service.base.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.efast.cafe.framework.service.CafeServiceImpl;
import com.efast.cafe.portal.dao.base.BaseCityDao;
import com.efast.cafe.portal.entity.base.BaseCity;
import com.efast.cafe.portal.remote.base.BaseCityService;
import com.efast.cafe.portal.service.base.IBaseCityService;

@Service
@Transactional
public class BaseCityServiceImpl extends CafeServiceImpl<BaseCity> implements IBaseCityService{

	private BaseCityDao baseCityDao;
	
	
	@Autowired
	public void setBaseCityDao(BaseCityDao baseCityDao) {
		this.baseCityDao = baseCityDao;
		this.mapper = baseCityDao;
	}



	/**
	 * 通过省份编号查询城市列表
	 * @Date        :      2016年11月30日
	 * @param provinceID
	 * @return
	 */
	@Override
	public List<BaseCity> queryAllCityByProvince(String provinceID) {
		return baseCityDao.queryAllCityByProvince(provinceID);
	}

}
